package org.jederik.android.provider;

import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Enthält Werte, die für den Zugriff auf den Content Provider von Google 
 * Calendar benötigt werden.
 * @author Jann-Frederik Laß
 *
 */
public final class CalendarProvider {

	/** Beschreibt die Tabelle {@code events}. Alle Werte außer 
	 * {@code CONTENT_URI} sind Spaltennamen. */
	public static final class Events implements BaseColumns {
		
		public static final Uri CONTENT_URI = Uri.parse("content://calendar/events");

		public static final String TITLE = "title";
		public static final String EVENT_LOCATION = "eventLocation";
		public static final String DESCRIPTION = "description";
		public static final String DTSTART = "dtstart";
		public static final String DTEND = "dtend";
		public static final String CALENDAR_ID = "calendar_id";
		public static final String HAS_EXTENDED_PROPERTIES = "hasExtendedProperties";
		public static final String _SYNC_DIRTY = "_sync_dirty";
	}

	/** Beschreibt die Tabelle {@code extendedProperties}. Alle Werte außer 
	 * {@code CONTENT_URI} sind Spaltennamen. */
	public static final class ExtendedProperties implements BaseColumns {
		
		public static final Uri CONTENT_URI = Uri.parse("content://calendar/extendedproperties");

		public static final String EVENT_ID = "event_id";
		public static final String NAME = "name";
		public static final String VALUE = "value";
	}
	
	/** Beschreibt die Tabelle {@code calendars}. Alle Werte außer 
	 * {@code CONTENT_URI} sind Spaltennamen. */
	public static final class Calendars implements BaseColumns {
		
		public static final Uri CONTENT_URI = Uri.parse("content://calendar/calendars");
		
	}

}
